<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/one.css">
</head>

<body>
    <div id="app">
        <div class="left">
            <div class="left-item" v-for="(item) in ar" :key="ar.id">{{item.text}}</div>
        </div>
        <div class="right">
            <div class="left-item" v-for="(item,index) in arr" :key="arr.id" v-html='item'></div>
        </div>
    </div>
</body>
<script src="https://cn.vuejs.org/js/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            ar: [
                { id: '1', text: '新闻' },
                { id: '2', text: 'Hao123' },
                { id: '3', text: '地图' },
                { id: '4', text: '视频' },
                { id: '5', text: '贴吧' },
                { id: '6', text: '学术' },
                { id: '7', text: '更多' },
            ],
            arr: [
                "<span style='color:red'>抗击肺炎</span>",
                "设置", "<div style='height:30px;width:60px;line-height:30px;text-align:center;border-radius:5px;background-color:#5175ef;color:white'>登陆<div>"
            ]
        },
    });
</script>

</html>